<%@page import="POJO.PhieuDathang"%>
<%@page import="org.apache.jasper.tagplugins.jstl.core.ForEach"%>
<%@page import="java.util.ArrayList"%>
<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%
    if (request.getAttribute("id") != null)
    {
        String id = (String) request.getAttribute("id");
        if (id.equals("3"))
        {
            ArrayList<PhieuDathang> listPhieuDatHang = (ArrayList<PhieuDathang>) request.getAttribute("listPhieuDatHang");            
%>

<!-- Container -->
<div id="container">
	<div class="shell">

		<!-- Small Nav -->
		<div class="small-nav">
			<a href="#">Đơn hàng</a> <span>&gt;</span> Chi tiết đơn hàng
		</div>
		<!-- End Small Nav -->

		<!-- Main -->
		<div id="main">
			<div class="cl">&nbsp;</div>

			<!-- Content -->
			<div id="content">

				<!-- Box -->
				<div class="box">
					<!-- Box Head -->
					<div class="box-head">
						<h2 class="left">Thông tin chi tiết</h2>
						<div class="right">
						<form action="DonHang" method="post">
							<label>Tìm kiếm</label> <input type="text" class="field small-field" name="timKiem" /> <input type="submit" class="button" value="Tìm"/>
							</form>
						</div>
					</div>
					<!-- End Box Head -->

					<!-- Table -->
					<div class="table">
						<table width="100%" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<th width="60">Mã đặt hàng</th>
								<th>Mã khách hàng</th>
								<th>Trị giá sản phẩm</th>
								<th>Tình trạng</th>
								<th width="110" class="ac">Content Control</th>
							</tr>
							<%
							    for (PhieuDathang phieuDathang : listPhieuDatHang)
							            {
							        %>
							                <tr>
							                <th><%= phieuDathang.getMaDatHang() %> </th>
							                <th><%= phieuDathang.getMaKhachHang() %></th>
							                <th><%= phieuDathang.getTriGiaSP()%> </th>
							                <th><%= phieuDathang.getTinhTrang()%> </th>
							                <th>
														<a href="XemChiTiet?maPhieuDatHang=<%= phieuDathang.getMaDatHang() %>" class="ico edit">Xem chi tiết</a>
							                </th>
							                </tr>
							       <%
							            }
							%>
						</table>
					</div>
					<!-- Table -->
				</div>
				<!-- End Box -->
			</div>
			<!-- End Content -->

			<!-- Sidebar -->
			<div id="sidebar">

				<!-- Box -->
<!-- 				<div class="box"> -->

<!-- 					Box Head -->
<!-- 					<div class="box-head"> -->
<!-- 						<h2>Quản lý</h2> -->
<!-- 					</div> -->
<!-- 					End Box Head -->

<!-- 					<div class="box-content"> -->
<!-- 						<a href="ThemSanPham" class="add-button"><span>Thêm sản phẩm</span></a> -->
<!-- 						<div class="cl">&nbsp;</div> -->
						
<!-- 						Sort -->
<!-- 						End Sort -->
<!-- 					</div> -->
<!-- 				</div> -->
				<!-- End Box -->
			</div>
			<!-- End Sidebar -->

			<div class="cl">&nbsp;</div>
		</div>
		<!-- Main -->
	</div>
</div>
<!-- End Container -->
<%
    }

    }
%>
